package com.example.pojo;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * toupiao
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class Toupiao  implements Comparable<Toupiao>  {
    private String id;

    private String name;

    private String piao;

    private double price;

    private String number;

    private static final long serialVersionUID = 1L;

    @Override
    public int compareTo(Toupiao o) {
        return this.id.compareTo(o.getId());
    }
}